cmake_minimum_required(VERSION 3.20)

# -- 替换
cmake_host_system_information(RESULT OS_NAME QUERY OS_NAME)
configure_file(./configue.h.in configue.h)

# -- 只拷贝
# configure_file(./configue.h.in configue.h COPYONLY)

# -- 只拷贝@的
# configure_file(./configue.h.in configue.h @ONLY)

# -- 内部双引号转义
# set(TEXT {name:"hzh" sex:"man"})
# configure_file(configue.h.in configue.h ESCAPE_QUOTES)